

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">

<html>
<head>
<script type="text/javascript" src="helpman_topicinit.js"></script>

<title>ADA 2005 [Enterprise Architect User Guide]</title>

<meta name="keywords" content="Enterprise Architect, Sparx Systems, UML, Modeling Conventions,Modeling Conventions ADA 2005,ADA 2005,ADA 2005 Modeling Conventions">
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1" />
<meta http-equiv="Content-Style-Type" content="text/css" />

<link type="text/css" href="default.css" rel="stylesheet" />
<style type="text/css">
  A, A:Visited
  {
    color: #00F;
  }

  A:Active, A:Hover
  {
    color: #F00;
  }

  OL
  {
    margin: 5px 0 5px 48px;
  }

  UL
  {
    margin-bottom: 3px;
    margin-top: 0;
  }

  #nsr
  {
    background-color: #D4DFFF;
  }

  #nsr A
  {
    text-decoration: none;
  }

  #mainbody
  {
    padding: 8px;
  }

  .p_BodyText
  {
    padding: 5px 0;
  }
</style>



<style type="text/css" media="screen">
  BODY
  {
    background-color: #FFFFFF;
  }

  #nsr
  {
    padding: 6px 6px 0 6px;
    border-bottom: none;
    vertical-align: top;
    z-index: 2;
    visibility: visible;
    left: 0;
    top: 0;
    position: absolute;
  }

  #mainbody
  {
    left: 0;
    top: 0;
    margin: 0;
    position: absolute;
    padding: 10px;
    overflow: auto;
    height: 100%;
    z-index: 1;
    background-repeat: no-repeat;
    background-position: bottom right;
    background-attachment: fixed;
  }
</style>

<style type="text/css" media="print">
  #nsr
  {
    visibility: none;
  }

  #mainbody
  {
    overflow: visible;
  }
</style>
<script type="text/javascript" language="JavaScript" src="nonscroll.js"></script>

</head>
<body scroll="no">

<div id="page">



        <div id="content">
          <div id="content-inner">
          



  
          <div id="nsr">
            <table border="0" cellspacing="0" cellpadding="4" width="100%">
              <tr valign="top">
                <td align="left">
  


                  <p class="p_Heading1"><span class="f_Heading1">ADA 2005</span></p>



  
                </td>
                <td align="right">
                  <a href="introduction.htm" onmouseover="document.images.main.src='button_main_h.gif'" onmouseout="document.images.main.src='button_main.gif'">
                    <img name="main" src="button_main.gif" border=0 alt="Return to Introduction">
                  </a>&nbsp;
    
                  <a href="actionscript_conventions.htm" onmouseover="document.images.prev.src='button_prev_h.gif'" onmouseout="document.images.prev.src='button_prev.gif'">
                    <img name=prev src="button_prev.gif" border=0 alt="Previous page" />
                  </a>&nbsp;
    
    
    
                  <a href="c_conventions.htm" onmouseover="document.images.next.src='button_next_h.gif'" onmouseout="document.images.next.src='button_next.gif'">
                    <img name=next src="button_next.gif" border=0 alt="Next page" />
                  </a>
    
    
                </td>
              </tr>
            </table>
          </div>
          <div id="mainbody">
  


                <p class="p_BodyText"><span class="f_BodyText">ADA 2005 support is available in the System Engineering and Ultimate editions of Enterprise Architect.</span></p>
<p class="p_BodyText"><span class="f_BodyText">Enterprise Architect supports round trip engineering of ADA 2005, where the following conventions are used.</span></p>
<p class="p_SubHeadingL1"><span class="f_SubHeadingL1">Stereotypes</span></p>
<div style="text-align: left; text-indent: 0px; padding: 0px 0px 0px 0px; margin: 5px 0px 5px 13px;"><table cellspacing="0" cellpadding="0" border="0" style="border: none; border-spacing:0px; border-collapse: collapse;">
<tr style="text-align:left;vertical-align:top;">
<td valign="top" width="144" bgcolor="#e3e6ed" style="width:144px; background-color:#e3e6ed; border: solid 1px #000000;"><p class="p_Tableheader"><span class="f_Tableheader">Stereotype</span></p>
</td>
<td valign="top" width="254" bgcolor="#e3e6ed" style="width:254px; background-color:#e3e6ed; border: solid 1px #000000;"><p class="p_Tableheader"><span class="f_Tableheader">Applies To</span></p>
</td>
<td valign="top" width="341" bgcolor="#e3e6ed" style="width:341px; background-color:#e3e6ed; border: solid 1px #000000;"><p class="p_Tableheader"><span class="f_Tableheader">Corresponds To</span></p>
</td>
</tr>
<tr style="text-align:left;vertical-align:top;">
<td valign="top" width="144" style="width:144px; border: solid 1px #000000;"><p class="p_Tabletext"><span class="f_Tabletext" style="font-weight: bold;">adaPackage</span></p>
</td>
<td valign="top" width="254" style="width:254px; border: solid 1px #000000;"><p class="p_Tabletext"><span class="f_Tabletext">Class</span></p>
</td>
<td valign="top" width="341" style="width:341px; border: solid 1px #000000;"><p class="p_Tabletext"><span class="f_Tabletext">A package specification in ADA without a tagged record.</span></p>
</td>
</tr>
<tr style="text-align:left;vertical-align:top;">
<td valign="top" width="144" style="width:144px; border: solid 1px #000000;"><p class="p_Tabletext"><span class="f_Tabletext" style="font-weight: bold;">adaProcedure</span></p>
</td>
<td valign="top" width="254" style="width:254px; border: solid 1px #000000;"><p class="p_Tabletext"><span class="f_Tabletext">Class</span></p>
</td>
<td valign="top" width="341" style="width:341px; border: solid 1px #000000;"><p class="p_Tabletext"><span class="f_Tabletext">A procedure specification in ADA. </span></p>
</td>
</tr>
<tr style="text-align:left;vertical-align:top;">
<td valign="top" width="144" style="width:144px; border: solid 1px #000000;"><p class="p_Tabletext"><span class="f_Tabletext" style="font-weight: bold;">delegate</span></p>
</td>
<td valign="top" width="254" style="width:254px; border: solid 1px #000000;"><p class="p_Tabletext"><span class="f_Tabletext">Operation</span></p>
</td>
<td valign="top" width="341" style="width:341px; border: solid 1px #000000;"><p class="p_Tabletext"><span class="f_Tabletext">Access to a subprogram.</span></p>
</td>
</tr>
<tr style="text-align:left;vertical-align:top;">
<td valign="top" width="144" style="width:144px; border: solid 1px #000000;"><p class="p_Tabletext"><span class="f_Tabletext" style="font-weight: bold;">enumeration</span></p>
</td>
<td valign="top" width="254" style="width:254px; border: solid 1px #000000;"><p class="p_Tabletext"><span class="f_Tabletext">Inner Class</span></p>
</td>
<td valign="top" width="341" style="width:341px; border: solid 1px #000000;"><p class="p_Tabletext"><span class="f_Tabletext">An </span><span class="f_Tabletext" style="font-style: italic;">enum</span><span class="f_Tabletext"> type.</span></p>
</td>
</tr>
<tr style="text-align:left;vertical-align:top;">
<td valign="top" width="144" style="width:144px; border: solid 1px #000000;"><p class="p_Tabletext"><span class="f_Tabletext" style="font-weight: bold;">struct</span></p>
</td>
<td valign="top" width="254" style="width:254px; border: solid 1px #000000;"><p class="p_Tabletext"><span class="f_Tabletext">Inner Class</span></p>
</td>
<td valign="top" width="341" style="width:341px; border: solid 1px #000000;"><p class="p_Tabletext"><span class="f_Tabletext">A record definition.</span></p>
</td>
</tr>
<tr style="text-align:left;vertical-align:top;">
<td valign="top" width="144" style="width:144px; border: solid 1px #000000;"><p class="p_Tabletext"><span class="f_Tabletext" style="font-weight: bold;">typedef</span></p>
</td>
<td valign="top" width="254" style="width:254px; border: solid 1px #000000;"><p class="p_Tabletext"><span class="f_Tabletext">Inner Class</span></p>
</td>
<td valign="top" width="341" style="width:341px; border: solid 1px #000000;"><p class="p_Tabletext"><span class="f_Tabletext">A type definition, subtype definition, access type definition, renaming.</span></p>
</td>
</tr>
</table>
</div>
<p class="p_SubHeadingL1"><span class="f_SubHeadingL1">Tagged Values</span></p>
<div style="text-align: left; text-indent: 0px; padding: 0px 0px 0px 0px; margin: 5px 0px 5px 13px;"><table cellspacing="0" cellpadding="0" border="0" style="border: none; border-spacing:0px; border-collapse: collapse;">
<tr style="text-align:left;vertical-align:top;">
<td valign="top" width="145" bgcolor="#e3e6ed" style="width:145px; background-color:#e3e6ed; border: solid 1px #000000;"><p class="p_Tableheader"><span class="f_Tableheader">Tag</span></p>
</td>
<td valign="top" width="250" bgcolor="#e3e6ed" style="width:250px; background-color:#e3e6ed; border: solid 1px #000000;"><p class="p_Tableheader"><span class="f_Tableheader">Applies To</span></p>
</td>
<td valign="top" width="341" bgcolor="#e3e6ed" style="width:341px; background-color:#e3e6ed; border: solid 1px #000000;"><p class="p_Tableheader"><span class="f_Tableheader">Corresponds To</span></p>
</td>
</tr>
<tr style="text-align:left;vertical-align:top;">
<td valign="top" width="145" style="width:145px; border: solid 1px #000000;"><p class="p_Tabletext"><span class="f_Tabletext" style="font-weight: bold;">Discriminant</span></p>
</td>
<td valign="top" width="250" style="width:250px; border: solid 1px #000000;"><p class="p_Tabletext"><span class="f_Tabletext">Inner Class with stereotype </span><span class="f_Tabletext" style="font-style: italic;">typedef</span></p>
</td>
<td valign="top" width="341" style="width:341px; border: solid 1px #000000;"><p class="p_Tabletext"><span class="f_Tabletext">The type's discriminant.</span></p>
</td>
</tr>
<tr style="text-align:left;vertical-align:top;">
<td valign="top" width="145" style="width:145px; border: solid 1px #000000;"><p class="p_Tabletext"><span class="f_Tabletext" style="font-weight: bold;">IsAccess</span></p>
</td>
<td valign="top" width="250" style="width:250px; border: solid 1px #000000;"><p class="p_Tabletext"><span class="f_Tabletext">Parameter</span></p>
</td>
<td valign="top" width="341" style="width:341px; border: solid 1px #000000;"><p class="p_Tabletext"><span class="f_Tabletext">Determination of whether the parameter is an access variable.</span></p>
</td>
</tr>
<tr style="text-align:left;vertical-align:top;">
<td valign="top" width="145" style="width:145px; border: solid 1px #000000;"><p class="p_Tabletext"><span class="f_Tabletext" style="font-weight: bold;">InstantiatedUnitType</span></p>
</td>
<td valign="top" width="250" style="width:250px; border: solid 1px #000000;"><p class="p_Tabletext"><span class="f_Tabletext">Inner Class with stereotype </span><span class="f_Tabletext" style="font-style: italic;">typedef</span></p>
</td>
<td valign="top" width="341" style="width:341px; border: solid 1px #000000;"><p class="p_Tabletext"><span class="f_Tabletext">The instantiated unit's type (</span><span class="f_Tabletext" style="font-style: italic;">Package / Procedure / Function</span><span class="f_Tabletext">).</span></p>
</td>
</tr>
<tr style="text-align:left;vertical-align:top;">
<td valign="top" width="145" style="width:145px; border: solid 1px #000000;"><p class="p_Tabletext"><span class="f_BodyText" style="font-weight: bold;">PartType</span></p>
</td>
<td valign="top" width="250" style="width:250px; border: solid 1px #000000;"><p class="p_Tabletext"><span class="f_Tabletext">Inner Class with stereotype </span><span class="f_Tabletext" style="font-style: italic;">typedef</span></p>
</td>
<td valign="top" width="341" style="width:341px; border: solid 1px #000000;"><p class="p_Tabletext"><span class="f_Tabletext">The part type (r</span><span class="f_Tabletext" style="font-style: italic;">enames</span><span class="f_Tabletext"> or </span><span class="f_Tabletext" style="font-style: italic;">new</span><span class="f_Tabletext">).</span></p>
</td>
</tr>
<tr style="text-align:left;vertical-align:top;">
<td valign="top" width="145" style="width:145px; border: solid 1px #000000;"><p class="p_Tabletext"><span class="f_Tabletext" style="font-weight: bold;">Type</span></p>
</td>
<td valign="top" width="250" style="width:250px; border: solid 1px #000000;"><p class="p_Tabletext"><span class="f_Tabletext">Inner Class with stereotype</span><span class="f_Tabletext" style="font-style: italic;"> typedef</span></p>
</td>
<td valign="top" width="341" style="width:341px; border: solid 1px #000000;"><p class="p_Tabletext"><span class="f_Tabletext">If Value = </span><span class="f_Tabletext" style="font-style: italic;">SubType</span><span class="f_Tabletext">, set subtype.</span></p>
<p class="p_Tabletext"><span class="f_Tabletext">If Value = </span><span class="f_Tabletext" style="font-style: italic;">Access</span><span class="f_Tabletext">, set access type.</span></p>
</td>
</tr>
</table>
</div>
<p class="p_SubHeadingL1"><span class="f_SubHeadingL1">Other Conventions</span></p>
<ul style="text-indent: 0px; margin-left: 30px; list-style-position: outside;">
<li><span class="f_Bulletlist1">Appropriate type of source files: ADA specification file, </span><span class="f_Bulletlist1" style="font-weight: bold;">.</span><span class="f_Bulletlist1" style="font-style: italic; font-weight: bold;">ads</span><span class="f_Bulletlist1">.</span></li>
<li><span class="f_Bulletlist1">ADA 2005 imports packages defined as either &lt;&lt;adaPackage&gt;&gt;Class or Class, based on the settings in the <a href="ada.htm">ADA options</a>.</span></li>
<li><span class="f_Bulletlist1">A package in the ADA specification file is imported as a Class if it contains a Tagged Record, the name of which is governed by the options </span><span class="f_MenuKeyField">Use Class Name for Tagged Record</span><span class="f_Bulletlist1"> and </span><span class="f_MenuKeyField">Alternate Tagged Record Name</span><span class="f_Bulletlist1">. All attributes defined in that Tagged Record are absorbed as the Class's attributes.</span></li>
<li><span class="f_Bulletlist1">A procedure / function in an ADA specification file is considered as the Class's member function if its first parameter satisfies the conditions specified in the options </span><span class="f_MenuKeyField">Ref Param Style</span><span class="f_Bulletlist1">, </span><span class="f_MenuKeyField">Ignore Reference parameter name</span><span class="f_Bulletlist1"> and </span><span class="f_MenuKeyField">Ref parameter name</span><span class="f_Bulletlist1">.</span></li>
<li><span class="f_Bulletlist1">The option </span><span class="f_MenuKeyField">Define Reference for Tagged Record</span><span class="f_Bulletlist1">, if enabled, creates a reference type for the Class, the name of which is determined by the option </span><span class="f_MenuKeyField">Reference Type Name</span><span class="f_Bulletlist1">.</span></li>
</ul>
<p class="p_BodyText"><span class="f_BodyText">&nbsp;</span><br>
<span class="f_BodyText">For example: </span><span class="f_BodyText" style="font-style: italic;">HelloWorld.ads</span></p>
<p class="p_Code"><span class="f_Code">package HelloWorld is</span></p>
<p class="p_Code"> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span class="f_Code">type HelloWorld is tagged record</span></p>
<p class="p_Code"> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span class="f_Code">Att1: Natural;</span></p>
<p class="p_Code"> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span class="f_Code">Att3: Integer;</span></p>
<p class="p_Code"> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span class="f_Code">end record;</span></p>
<p class="p_Code"> &nbsp; &nbsp; &nbsp; &nbsp;</p>
<p class="p_Code"> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span class="f_Code">-- Public Functions</span></p>
<p class="p_Code"> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span class="f_Code">function MyPublicFunction (P: HelloWorld) return String;</span></p>
<p class="p_Code"> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span class="f_Code">procedure MyPublicFunction (P1: in out HelloWorld; AFlag: Boolean);</span></p>
<p class="p_Code"><span class="f_Code">private</span></p>
<p class="p_Code"> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span class="f_Code">-- Private Functions</span></p>
<p class="p_Code"> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span class="f_Code">function MyPrivateFunction (P: HelloWorld) return String;</span></p>
<p class="p_Code"> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span class="f_Code">procedure MyPrivateFunction (P1: in out HelloWorld; AFlag: Boolean);</span></p>
<p class="p_Code"><span class="f_Code">&nbsp;</span></p>
<p class="p_Code"><span class="f_Code">end HelloWorld;</span></p>
<p class="p_TextIndentedL2"><img src="ada%202005%20class.png" width="300" height="304" border="0" alt="ADA 2005 Class"></p>
<p class="p_SeeAlso"><span class="f_SeeAlso">See Also</span></p>
<ul style="text-indent: 0px; margin-left: 30px; list-style-position: outside;">
<li><span class="f_Bulletlist1"><a href="o316.htm">Import Source Code</a></span></li>
<li><span class="f_Bulletlist1"><a href="generatesourcecode.htm">Generate Source Code</a></span></li>
<li><span class="f_Bulletlist1"><a href="ada.htm">ADA 2005 Options</a></span></li>
</ul>




            </div>
          </div>
        </div>



</div>


</body>
</html>
